package com.heying.springcore.aop.xml;

import com.heying.springcore.SpringConfig;
import com.heying.springcore.spel.SpEl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestSpring {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(SpringConfig.class);
        Performer performer = context.getBean(Performer.class);
//        performer.perform(10);

        Encoreable encoreable =(Encoreable) performer;
        encoreable.performEncore();



    }
}
